package com.jy.rhin.model.body.zhuanzhenjl;


import com.jy.rhin.infra.cda.EDataElement;
import com.jy.rhin.infra.cda.XPath;
import com.jy.rhin.infra.cda.XValid;
import com.jy.rhin.model.CodeObject;
import lombok.Getter;
import lombok.Setter;

/**
 * 用药
 */
@Getter
@Setter
public class YongYao {

    /**
     * 中药使用类别代码
     */
    @XPath(path = "/entry/observation/code[@code='DE06.00.164.00']/../value",
            xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE06_00_164_00))
    private CodeObject zhongYaoSYLBDM;

    /**
     * 单次用药剂量
     */
    @XPath(path = "/entry/substanceAdministration/doseQuantity/@value")
    private String danCiYYJL;

    /**
     * 药物使用频率
     */
    @XPath(path = "/entry/substanceAdministration/rateQuantity/@value")
    private String yaoWuSYPL;

    /**
     * 药物类型
     */
    @XPath(path = "/entry/substanceAdministration/administrationUnitCode",
            xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE08_50_011_00))
    private CodeObject yaoWuLX;

    /**
     * 用药天数
     */
    @XPath(path = "/entry/substanceAdministration/entryRelationship/observation/code[@code='DE06.00.147.00']/../value/@value")
    private String yongYaoTS;

    /**
     * 药物使用总剂量
     */
    @XPath(path = "/entry/substanceAdministration/entryRelationship/observation/code[@code='DE06.00.135.00']/../value/@value")
    private String yaoWuSYZJL;

    /**
     * 用药停止日期
     */
    @XPath(path = "/entry/substanceAdministration/entryRelationship/observation/code[@code='DE06.00.094.00']/../value/@value")
    private String yongYaoTZRQ;
}
